import request from '@/utils/request'

export default {
  queryProcessConfigT(data) {
    return request({
      url: `/sys/processconfigt/listByDto`,
      method: 'post',
      data
    })
  },

  deleteProcessConfigT(data) {
    return request({
      url: `/sys/processconfigt/delete`,
      method: 'post',
      data
    })
  },

  getProcessConfigTInfo(id) {
    return request({
      url: `/sys/processconfigt/info/${id}`,
      method: 'get',
      data
    })
  },
  addOrUpdateProcessConfigT(data) {
    if (data.id === null) {
      return request({
        url: `/sys/processconfigt/add`,
        method: 'post',
        data
      })
    } else {
      return request({
        url: `/sys/processconfigt/update`,
        method: 'post',
        data
      })
    }
  },
}
